﻿using System.Collections.Generic;

namespace Spider.Mode
{
    public class DxwMode
    {
        public class IndexesItem
        {
            /// <summary>
            /// 上证指数
            /// </summary>
            public string title { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string index { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string text { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string color { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public Param param { get; set; }
        }

        public class Tag
        {
            /// <summary>
            /// 
            /// </summary>
            public string url { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string w { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string h { get; set; }
        }

        public class Param
        {
            /// <summary>
            /// 
            /// </summary>
            public string event_id { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int event_type { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string code { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int tab { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string charttype { get; set; }
        }

        public class YidongItem
        {
            /// <summary>
            /// 
            /// </summary>
            public string time { get; set; }

            /// <summary>
            /// 金属铅锌
            /// </summary>
            public string name { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string percent { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string color { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public Tag tag { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public Param param { get; set; }
        }

        public class Filter_dateItem
        {
            /// <summary>
            /// 今日
            /// </summary>
            public string t { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string v { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int current { get; set; }
        }

        public class Filter_classifyItem
        {
            /// <summary>
            /// 按大类
            /// </summary>
            public string t { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string v { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int current { get; set; }
        }

        public class Para
        {
            /// <summary>
            /// 
            /// </summary>
            public string code { get; set; }
        }

        public class RankItemItem
        {
            /// <summary>
            /// 啤酒
            /// </summary>
            public string name { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string percent { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string text { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string bgcolor { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string color { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string subjectIcon { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public Para para { get; set; }
        }

        public class ListItem
        {
            /// <summary>
            /// 涨幅
            /// </summary>
            public string t { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int v { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int act { get; set; }
        }

        public class Type
        {
            /// <summary>
            /// 排序方式
            /// </summary>
            public string title { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public List<ListItem> list { get; set; }
        }

        public class Input_date
        {
            /// <summary>
            /// 
            /// </summary>
            public string start_date { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string end_date { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string current_date { get; set; }
        }

        public class Data
        {
            /// <summary>
            /// 
            /// </summary>
            public List<IndexesItem> indexes { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public List<YidongItem> yidong { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public List<Filter_dateItem> filter_date { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public List<Filter_classifyItem> filter_classify { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public List<List<RankItemItem>> rank { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int column { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int isOpen { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int sortType { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public Type type { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public Input_date input_date { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public int need_grade { get; set; }
        }

        /// <summary>
        /// 
        /// </summary>
        public int code { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string msg { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Data data { get; set; }
    }
}